/**
 * 
 */
package cn.rabbitdb.protocol;

import cn.rabbitdb.protocol.mysql41.MySQLErrorPacket;
import io.netty.buffer.ByteBuf;
import junit.framework.TestCase;

/**
 * @author User
 *
 */
public class ErrorPacketTestCase extends TestCase {
	public void testErrorPacket() {
		MySQLErrorPacket packet = new MySQLErrorPacket(1, 1045, "Access dined: wrong password");
		System.out.println(packet);
		ByteBuf buf = packet.getMySQLMessageWriter().getBuffer();
	Bytes.dumpBuffer(buf);	
	}
}
